<!doctype html>
<html>
    <head>
    <% if(DEBUG){ %>
    <script>window.debug = true;</script>
    <% } %>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1">
        <meta http-equiv="pragma" content="no-cache">
        <meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
        <meta http-equiv="expires" content="-1">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <title><%= game.name %></title>
        <link rel="shortcut icon" href="/image/favicon.ico">
        
        <% for(var i=0,len=currentPageCss.length; i<len; i++){ %>
        <link href="<%= currentPageCss[i] %>" rel="stylesheet">
        <% } %>

        <script id="seajsnode" src="/KG/KG.min.js"></script>

<style>
.loadingGame{position: fixed;top: 0;left: 0;width: 100%;height: 100%;z-index: 99;background: rgba(0,0,0,0.7);}
.loadingGame h1{color: #fff;width:100%;height: 80px;top: 35%;text-align: center;line-height: 80px;font-size: 20px;position: absolute;left:0;}
</style>

    </head>
    <body>
        <div id="js_main" class="page"></div>


        <div class="loadingGame"><h1>正在加载游戏...</h1></div>
    </body>
</html>
<script type="text/javascript">
var GameData = '<%= JSON.stringify(game) %>';
GameData = JSON.parse(GameData.replace(/&quot;/g, '"'));
seajs.use('/game/js/<%= game.id %>.js', function(Game){
    Game.init();
});

</script>
